package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysCertificateMenuMapper;
import com.ruoyi.system.domain.SysCertificateMenu;
import com.ruoyi.system.service.ISysCertificateMenuService;

/**
 * 证书目录Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-10-18
 */
@Service
public class SysCertificateMenuServiceImpl implements ISysCertificateMenuService 
{
    @Autowired
    private SysCertificateMenuMapper sysCertificateMenuMapper;

    /**
     * 查询证书目录
     * 
     * @param id 证书目录主键
     * @return 证书目录
     */
    @Override
    public SysCertificateMenu selectSysCertificateMenuById(Long id)
    {
        return sysCertificateMenuMapper.selectSysCertificateMenuById(id);
    }

    /**
     * 查询证书目录列表
     * 
     * @param sysCertificateMenu 证书目录
     * @return 证书目录
     */
    @Override
    public List<SysCertificateMenu> selectSysCertificateMenuList(SysCertificateMenu sysCertificateMenu)
    {
        return sysCertificateMenuMapper.selectSysCertificateMenuList(sysCertificateMenu);
    }

    /**
     * 新增证书目录
     * 
     * @param sysCertificateMenu 证书目录
     * @return 结果
     */
    @Override
    public int insertSysCertificateMenu(SysCertificateMenu sysCertificateMenu)
    {
        return sysCertificateMenuMapper.insertSysCertificateMenu(sysCertificateMenu);
    }

    /**
     * 修改证书目录
     * 
     * @param sysCertificateMenu 证书目录
     * @return 结果
     */
    @Override
    public int updateSysCertificateMenu(SysCertificateMenu sysCertificateMenu)
    {
        return sysCertificateMenuMapper.updateSysCertificateMenu(sysCertificateMenu);
    }

    /**
     * 批量删除证书目录
     * 
     * @param ids 需要删除的证书目录主键
     * @return 结果
     */
    @Override
    public int deleteSysCertificateMenuByIds(Long[] ids)
    {
        return sysCertificateMenuMapper.deleteSysCertificateMenuByIds(ids);
    }

    /**
     * 删除证书目录信息
     * 
     * @param id 证书目录主键
     * @return 结果
     */
    @Override
    public int deleteSysCertificateMenuById(Long id)
    {
        return sysCertificateMenuMapper.deleteSysCertificateMenuById(id);
    }
}
